<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    [v-cloak] {
        display: none;
    }
</style>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

<body>
    <div id="app">
        {{data}}
        <div v-cloak>111</div>
        <div v-text='data'>啦啦啦啦啦</div>
        <button v-on:click='pot'>点击</button>
        <div v-html='data'>000</div>
    </div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            data: '<h1>哈哈哈哈哈</h1>',
            msg: '呀呀呀呀呀'
        },
        methods: {
            pot() {
                console.log(123)

            }
        }
    })

</script>

</html>